//
//  SSCouponTableViewCell.swift
//  拾舍清洁
//
//  Created by sky.wei on 2023/3/3.
//

import UIKit

class SSCouponTableViewCell: UITableViewCell {

    @IBOutlet weak var imageV: UIImageView!
    override func awakeFromNib() {
        super.awakeFromNib()
        imageV.layer.masksToBounds = true
        imageV.layer.cornerRadius = 8
        imageV.isUserInteractionEnabled = true
    }

    override func setSelected(_ selected: Bool, animated: Bool) {
        super.setSelected(selected, animated: animated)

        // Configure the view for the selected state
    }
    
    func setModel(model:SSCoupon) {
        self.imageV.setImage(with: model.imgUrl,placeholderImage: UIImage(named: "banner_place_holder"))
    }
    
    var model:SSBanner = SSBanner(){
        didSet {
            self.imageV.setImage(with: model.imgUrl,placeholderImage: UIImage(named: "banner_place_holder"))
        }
    }
    
}
